package generator

import "beergo/plugins/maker"

func init() {
	Banner()
	BannerPosition()
}

func Banner() {
	c := maker.CreateTable("Banner","轮播图","com")
	c.AddManyToOne("position","区域","BannerPosition")
	c.AddText("pic","图片")
	c.AddSort()
	c.AddText("url","外链")
	c.Generate()
}

func BannerPosition() {
	c := maker.CreateTable("BannerPosition","轮播图区域","com")
	c.AddName()
	c.AddCode()
	c.Generate()
}
